/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.task;

import com.player.MyPlayer;
import java.applet.AudioClip;
import java.util.Date;
import java.util.List;
import java.util.TimerTask;
/**
 * 
 * @author Administrator
 */
public class MyTimerTask extends TimerTask {

	List<Date> schedulerDate;
	AudioClip audio;
	private MyPlayer player;

	public List<Date> getSchedulerDate() {
		return schedulerDate;
	}

	public void setSchedulerDate(List<Date> schedulerDate) {
		this.schedulerDate = schedulerDate;
	}

	@Override
	public void run() {

		setPlayer(new MyPlayer());
		getPlayer().play();

	}

	public MyPlayer getPlayer() {
		return player;
	}

	public void setPlayer(MyPlayer player) {
		this.player = player;
	}
}
